package com.xx.service.impl;

import com.xx.dao.BookDao;
import com.xx.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service
public class BookServiceImpl implements BookService {
    BookDao bookDao;

    @Override
    public void getBookList() {
        bookDao.getBookList();
    }

    @Autowired
    public BookServiceImpl(@Qualifier("BookDao1") BookDao bookDao){
        this.bookDao =bookDao;
    }

    @Override
    public void addBookList() {
        bookDao.addBookList();
    }
}
